package com.eestimate.exceptions;


public enum ErrorCodeEnum {
	
	EMAIL_ALREADY_EXISTS		(1000,"EMAIL_ALREADY_EXISTS"),
	BLANK_FIELD					(1001,"BLANK_FIELD"),
	EMPLOYEE_NOT_FOUND			(1002,"EMPLOYEE_NOT_FOUND"),
	INVALID_CREDENTIALS			(1003,"INVALID_CREDENTIALS"),
	INTERNAL_SERVER_ERROR		(1004,"INTERNAL_SERVER_ERROR"),
	INVALID_BUSINESS_OBJECT_TYPE(1005,"INVALID_BUSINESS_OBJECT_TYPE"),
	MISSING_ANNOTATION			(1006,"MISSING_ANNOTATION"),
	INVALID_REQUEST				(1007,"INVALID_REQUEST");
	

	private Integer code;
	private String message;

	private ErrorCodeEnum(Integer code,String codeMsg) {
		this.code = code;
		this.message = codeMsg;
	}
	
	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	
	
}
